package com.jiuyun.dao;

import com.jiuyun.entity.Code;
import com.jiuyun.entity.Question;
import com.jiuyun.entity.Settings;
import com.jiuyun.entity.Subjec;

import java.sql.SQLException;
import java.util.List;

public interface SettingsDao {
    Settings find(String bmid)throws SQLException;

    int upsuj(int fs, String bmid, int qid)throws SQLException;

    Code getbm(String bmid)throws SQLException;
    
    int add(Settings s)throws SQLException;

    int addcode(String bm)throws SQLException;

    int addSubjec(Subjec s)throws SQLException;

    int up(int i, String bmid)throws SQLException;

    int del(String bmid, int qid)throws SQLException;

    List<Question> gettimu(String qid) throws SQLException;

    List<Settings> getsj(int qid) throws SQLException;

    List<Subjec> setm(String bmid)throws SQLException;

    List<Question> alltimu(String bookname) throws SQLException;
}
